{template '../../header'}
{template '../../left'}

<div class="card">
    <div class="card-header">
        留言管理
    </div>
    <div class="card-body">
        <table class="table table-sm table-striped table-hover">
            <thead>
            <th>
                姓名称呼
            </th>
            <th>
                联系方式
            </th>
            <th>
                留言内容
            </th>
            <th>
                提交时间
            </th>
            <th>
                删除
            </th>
            </thead>
            <tbody>
                {loop $rows $row}
                <tr>
                    <td>
                        <?php echo $row['realname']; ?>
                    </td>
                    <td>
                        <?php echo $row['mobile']; ?>
                    </td>
                    <td>
                        <?php echo $row['content']; ?>
                    </td>
                    <td>
                        <?php echo $row['add_time']; ?>
                    </td>
                    <td>
                        <button type="button" class="btn btn-danger btn-sm" onclick="confirm('确定要删除栏目吗？') && (location.href='/admin/cms/comment/remove?id={$row['id']}')"><i class="fa fa-trash-o"></i></button>
                    </td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {template '../../page'}
    </div>
</div>

{template '../../footer'}   